package June03;

public class Student extends Employee implements Cloneable{
    public Student() {
    }

    public Student(String name, String gender, Integer age) {
        super(name, gender, age);
    }



    @Override
    public void show() {
        System.out.println("学生登录了，信息如下:姓名=" + getName() + ",性别=" + getGender() + ",年龄=" + getAge());
    }

    @Override
    public String toString() {
        return "Student{} " + super.toString();
    }

    //在JavaBean类中重写clone方法

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
